package com.exp.collection;

import java.util.ArrayList;

class Employee1  {
	int id;
	String Name;
	String Addr;
	char Gender;
	Double Sal;
	public Employee1(int a,String b,String c,Double d,char e) {
		this.id = a;
		this.Name = b;
		this.Addr =c;
		this.Sal = d;
		this.Gender = e;
	}
	
	public String toString() {
		return (this.id + " " + this.Name  + " " +  this.Addr + " " +  this.Sal + " " + this.Gender);
		
	}
}

public class EmployeeCollection {
	public static void main(String[] args) {
		ArrayList<Employee1> emp = new ArrayList<Employee1>();
		emp.add(new Employee1(10,"Jaya","Blore",20000.40,'f'));
		emp.add(new Employee1(20,"maya","Mlore",25000.40,'f'));
		emp.add(new Employee1(30,"liya","Hubli",200800.40,'m'));
		emp.add(new Employee1(40,"geeya","Bangalore",29000.40,'m'));
		emp.add(new Employee1(50,"Jaa","Blr",39000.40,'f'));
		System.out.println(emp);
		
	}


}
